Skip to content

Update dependency dts-bundle-generator to v10 - #117

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/dts-bundle-generator-10.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/dts-bundle-generator-10.x

Conversation

@renovate

@renovate renovate Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
dts-bundle-generator ^6.12.0 → ^10.0.0 age confidence

Release Notes

timocov/dts-bundle-generator (dts-bundle-generator)

v10.0.0: 10.0.0

Compare Source

Release notes

This is a major release: the package is now an ES module, the CLI moved from yargs to commander, the minimum supported Node.js and TypeScript versions are raised, TypeScript 6 is supported, and the default value of the exportReferencedTypes option has changed. See the "Breaking changes" section below before upgrading.

It also has a lot of fixes for name collisions/renaming, plus noticeable performance improvements on big projects.

Thanks to @​mnaoumov, @​matortheeternal and @​slhck for the contributions 🙏

Breaking changes
  • The package is now an ES module ("type": "module"). It can still be loaded with require() from CommonJS, since Node.js 24 supports require(esm) (see #​382)
  • Only the main entry point (dts-bundle-generator) and the config schema types (dts-bundle-generator/config-schema) can be imported now. Deep imports of other files from the package (e.g. dts-bundle-generator/dist/...) no longer work (see #​382)
  • The CLI now uses commander instead of yargs. Boolean options no longer accept values (e.g. --sort=false is an error now), invalid options are reported in commander's format, and the --help layout changed slightly (see #​383)
  • The minimum supported Node.js version is now 24 (see #​368)
  • The minimum supported TypeScript version is now 5.4, and the supported range is capped at <7 because TypeScript 7 doesn't provide a compiler API yet (see #​368 and #​375)
  • exportReferencedTypes is now disabled by default (--export-referenced-types defaults to false), so a node is exported only if it is exported from the root source file. If you enable it explicitly, the generation now fails when a referenced type can't be exported because it was renamed to avoid a name collision (see #​289 and #​369)
Added
  • TypeScript 6 support (see #​368)
  • Config files can be ES modules with a default export, as well as CommonJS (see #​382)
  • -h and -v short flags for --help and --version (see #​383)
  • --check-project CLI option (checkConfigPath in the config file) to use a separate tsconfig for the validation of generated files, e.g. to validate the output with stricter options (see #​293 and #​370)
  • --allow-unresolved-import-types CLI option (compilationOptions.allowUnresolvedImportTypes in the config file) to keep import() types whose module can't be resolved as is (and print a warning) instead of failing. Useful for libraries that intentionally check for optional modules in their typings (see #​376)
Changed
  • The CLI starts faster (~45ms less per run) because commander has no dependencies, replacing yargs and the 12 packages it pulled in (see #​383)
  • Namespaces declared with the module keyword (declare module Foo {}) are now printed as namespace (see #​356 and #​380)
Fixed
  • Compatibility with the esModuleInterop compiler flag (see #​368)
  • JSDoc comments are stripped from top-level exports that aren't exported directly (see #​328 and #​365) - thanks @​matortheeternal
  • Duplicated augmented types are handled incorrectly: interfaces/classes and augmented enums/namespaces in ambient modules got renamed (see #​335 and #​336) - thanks @​mnaoumov
  • Error when bundling with axios 1.7.8 (named imports of export = module members) (see #​339 and #​373)
  • Incorrect renaming of express's Request and Response types (references to renamed named imports of export = namespace members) (see #​353 and #​378)
  • References point to the wrong variable when names declared in nested scopes shadow them (see #​323 and #​374)
  • TS5055 regression with checkJs: true and declarations of JS files (see #​359 and #​372)
  • Performance improvements for projects with many exports (see #​364, #​371 and #​381)

v9.5.1: 9.5.1

Compare Source

Fixed

v9.5.0: 9.5.0

Compare Source

Fixed
  • Constants declared by using object/array binding pattern syntax fail the build (see #​315 and #​317)

v9.4.1: 9.4.1

Compare Source

Fixed
  • Fixed issue when because of recursive types some of the types could get removed from the bundle (see #​318 and 897a5d5)

v9.4.0: 9.4.0

Compare Source

Fixed
  • Performance improvements (see #​302, #​303 and #​314)
  • Declarations of "unknown" modules aren't included despite enabled inlineDeclareExternals flag (see #​312 and 186e6fd)
  • Fixed handling import * statements with local usage but not directly exporting (see #​304 and #​309)
  • Fixed bug when imported nodes weren't included into bundle if they were used in declare module statements only (see #​305 and #​316)
  • Fixed issue with unknown extension when using allowArbitraryExtensions compiler option (see #​313) - thanks @​stepankuzmin

v9.3.1: 9.3.1

Compare Source

Fixing one little oopsie from v9.3.0 release.

Fixed
  • Spamming warning log messages while processing variables (see 8ecb56f)

v9.3.0: 9.3.0

Compare Source

Changed
  • Do not compile bundled output together as they might have incompatible global declarations (see #​296 and 43c2058)
Fixed
  • Not all symbols in a declaration merging are exported (see #​301 and 874f801)
  • Namespaced imports/exports don't generate a namespace if they are exported via name (see #​299 and 86fc2ff)
  • jsdoc comments are stripped for nodes that were renamed because of the name collision (see #​298 and 2b1b281)
  • Do not rename a node if known global name refers to this a symbol of that node (see #​297 and c0a7007)

v9.2.5: 9.2.5

Compare Source

Fixed
  • Fixed inlining transitive-dependencies when using inlineDeclareGlobals (see eb03676)

v9.2.4: 9.2.4

Compare Source

Added

v9.2.3: 9.2.3

Compare Source

Fixed
  • Do not export types if their local name changed because of collisions (unless they were explicitly exported) (see #​286 and 643003f)

v9.2.2: 9.2.2

Compare Source

Fixed

v9.2.1: 9.2.1

Compare Source

Fixed
  • Fixed handling globalThis and undefined (as a value) values (see #​282 and 6a132dd)

v9.2.0: 9.2.0

Compare Source

Release notes

In this release I tried to adapt tests from api-extractor tool in order to compare results and apart from some passing tests I found a few issues that are fixed in this release.

Fixed
  • Prettified output when some "parts" aren't emitted (e.g. banner) (see af1736f)
  • Fixed incorrect import() statement if imported name is imported with renaming (see 9edab0d)
  • Fixed wrongly collision-resolved names when a name exists in a global scope (see 25703d7)
  • Fixed incorrect output while having re-export via import (see e324b37)
  • Fixed incomplete generated namespace while having export * from statements (see 0bd1a19)
  • Fixed incorrect generation while using export * from statements (see 0bdbf07 and b27daaa)
  • Fixed error while generating namespaced exports via import statements (see 06e531f)

v9.1.0: 9.1.0

Compare Source

Release notes

With this release all known bugs in the tool are fixed (especially long-lived ones!) 🎉

Fixed
  • Star re-exports (import * as NS / export * as NS) aren't wrapped with a NS name (see #​134 and #​281)
  • (Re-)Export from re-export from external library doesn't add import/export statements (see #​251 and #​279)

v9.0.0: 9.0.0

Compare Source

Release notes

This release is one of biggest and the most valuable releases in years.

It introduces a fix for a limitation that existed since very first release i.e. resolving of name collisions 🎉.

Now, if you have 2 nodes with the same name in the bundle, one of them will be renamed (by adding $NUM suffix) to avoid clashing and accidental declaration merging (but if you have 2 interfaces declared in the same module to have declaration merging it should work as expected too).

Because of this new mechanism it helped to address some of the issues that I wasn't aware of but it seems that it existed in some of the packages, i.e. using a wrong name because of renaming during import (import { name as newName } case) (see "Additional information" section in this PR).

One of known changes in the declaration generation with this release is that a function/class/etc that was originally exported with the default export will never be exported directly but via re-export export { name as default }. This should not affect the result of the bundle but I think it is worth to note it.

But there is more, please refer to the change log below.

Last but not least, I want to thank @​Atrue for the contribution which was a motivation to make this release happen 🙏

Added
  • Use language service "rename" functionality to avoid name collisions (see #​130 and #​270)
  • Support for auto renaming nodes with the same name in the bundle (see #​116 and #​270)
Fixed
  • Inlining a library with namespaced imports/exports inlines export statements (see #​271 and #​278)
  • Incorrect handling re-export with namespace (see #​274 and #​277)
  • Double-underscored names aren't exported (see #​275 and #​276)
  • Invalid bundle while using import as statements in the code (see #​184 and #​270)
  • Incorrect handling namespaced imports/exports (see #​266)

v8.1.2: 8.1.2

Compare Source

Fixed
  • Something went wrong - value cannot be null (see #​265 and #​267)

v8.1.1: 8.1.1

Compare Source

Fixed
  • Stack overflow while handling re-exports with circular dependencies (see #​264 and 4429eac)

v8.1.0: 8.1.0

Compare Source

Added
  • Added support for .mts and .cts extensions (see #​204)
  • Fixed handling re-exports in dependencies (see #​259)

v8.0.1: 8.0.1

Compare Source

Fixed
  • declare module Module statements from dependencies are inlined despite if it should be imported (see #​250 and a725512)

v8.0.0: 8.0.0

Compare Source

Breaking changes
  • Minimal typescript version changed from 4.0 to 5.0 (see #​238 and #​240)
  • Changed default behavior for module ModuleName statements (without quotes) (see #​237 and #​242)
Fixed
  • Fixed wrong export state of referenced namespaces/modules (see #​241 and #​242)
  • Some types are removed if they used in ambient context (see #​243 and #​244)
  • Imports are lost when importing esm-like modules without default export using commonjs import or esm import default (see #​230 and #​245)
  • Statements aren't inlined if they are used in declare global statements only (see #​214 and #​246)
  • Fixed incorrect output if rename while re-exporting the default export without a name (see #​185 and #​248)

v7.2.0: 7.2.0

Compare Source

Fixed
  • Incorrect handling inlining import() statements (see #​234 and #​235)

v7.1.0: 7.1.0

Compare Source

Fixed
New Contributors

Full Changelog: timocov/dts-bundle-generator@v7.0.0...v7.1.0

v7.0.0: 7.0.0

Compare Source

Breaking changes
  • Minimal typescript version changed from 3.0 to 4.5
  • yargs dependency was upgraded from 17.2 to 17.6
  • Minimal NodeJS version changed from 12 to 14
  • Compilation target changed from es5 to es2020 (modules are still commonjs though)

See #​224

Fixed
  • Improve support of non-relative imports in projects with a baseUrl (see #​224)

Many thanks to @​josh- for their contribution!


Configuration

📅 Schedule: (in timezone Asia/Tokyo)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants